/*!
 * @file MessageActuator.inl
 * @author Rocco Martino
 */
/***************************************************************************
 *   Copyright (C) 2014 by Rocco Martino                                   *
 *   martinorocco@gmail.com                                                *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Lesser General Public License as        *
 *   published by the Free Software Foundation; either version 2.1 of the  *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU Lesser General Public      *
 *   License along with this program; if not, write to the                 *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef _OOGAME_MESSAGEACTUATOR_INL
#define _OOGAME_MESSAGEACTUATOR_INL




/* ======================================================================= */
/* ....................................................................... */
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline void
ooGame::MessageActuator::setTarget( osgODE::ODEObject* target )
{
    m_target = target ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline osgODE::ODEObject*
ooGame::MessageActuator::getTarget(void)
{
    return m_target.get() ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline const osgODE::ODEObject*
ooGame::MessageActuator::getTarget(void) const
{
    return m_target.get() ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline void
ooGame::MessageActuator::setType( Type type )
{
    m_type = type ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline ooGame::MessageActuator::Type
ooGame::MessageActuator::getType(void) const
{
    return m_type ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline void
ooGame::MessageActuator::setSubject( const std::string& subject )
{
    m_subject = subject ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline std::string&
ooGame::MessageActuator::getSubject(void)
{
    return m_subject ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline const std::string&
ooGame::MessageActuator::getSubject(void) const
{
    return m_subject ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline void
ooGame::MessageActuator::setTargetByNameInternal( const std::string& target_by_name_internal )
{
    if( target_by_name_internal != m_target_by_name_internal ) {

        m_target_by_name_internal = target_by_name_internal ;

        m_dirty = true ;

    }
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline std::string&
ooGame::MessageActuator::getTargetByNameInternal(void)
{
    return m_target_by_name_internal ;
}
/* ....................................................................... */
/* ======================================================================= */




/* ======================================================================= */
/* ....................................................................... */
inline const std::string&
ooGame::MessageActuator::getTargetByNameInternal(void) const
{
    return m_target_by_name_internal ;
}
/* ....................................................................... */
/* ======================================================================= */





#endif /* _OOGAME_MESSAGEACTUATOR_INL */
